package org.triumphxx.springboot.loopretry.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.triumphxx.springboot.loopretry.bean.RetryListenerBean;
import org.triumphxx.springboot.loopretry.bean.RetryListenerTwoBean;

/**
 * @author: wangyp
 * @Date: 2023/7/18
 * @Time: 13:42
 * @Desc: 配置 接口重试 监听Bean
 **/
@Configuration
public class Config {

    @Bean("retryListenerBean")
    public RetryListenerBean listenerBean(){
        return new RetryListenerBean();
    }

    @Bean("retryListenerTwoBean")
    public RetryListenerTwoBean listenerTwoBean(){
        return new RetryListenerTwoBean();
    }

}
